<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div>
    <img src="img/d.jpg" alt="">
</div>
<div>
    <img src="img/d.jpg" alt="">
</div>
<div>
    <img src="img/d.jpg" alt="">
</div>
<div>
    <img src="img/d.jpg" alt="">
</div>
<div>
    <img src="img/d.jpg" alt="">
</div>
<script src="js/jquery-3.6.0.min.js"></script>
<script >
//1> window.onload  ==> 当DOM树加载完毕
// window.onload=function(){
//     图片轮播的效果也不会实现
// }
// $(document).ready(function(){   //当DOM树加载就绪
//     alert(1);
// })
$(function(){
    alert(2);
})
</script>
</body>
</html>